package test01.demo04.dao;

import test01.demo04.pojo.Person;

import java.util.List;
import java.util.Map;

public interface PersonDao {

    /**
     * 以集合的形式同时插入多个人员
     * @param people
     */

    public boolean insert(List<Person> people);

    public int update(Person people);

    public boolean delete(String[] ids);

    public List<Map<String, Object>> getAll();

    public List<Map<String, Object>> getPersonForPage(int pagesize,int pageOrder);

    public Person getPersonById(String id);
}
